package com.xunlai.infra.permission.storage.repository;


import com.xunlai.infra.permission.storage.entity.UserAccount;

import java.util.List;
import java.util.Optional;

/**
 * @author liang
 * @date 2022/11/28 16:48
 */
public interface UserAccountRepository extends BaseAllRoundRepository<UserAccount,Long>{

    Optional<UserAccount> findByAccountAndPassword(String account,String password);

    Optional<UserAccount> findByAccount(String account);

    boolean existsByAccount(String account);

}
